<template>
  <el-descriptions title="用户信息">
    <el-descriptions-item label="用户名">{{user.userName}}</el-descriptions-item>
    <el-descriptions-item label="年龄">{{user.userAge}}</el-descriptions-item>
    <el-descriptions-item label="性别">{{user.userGender}}</el-descriptions-item>
    <el-descriptions-item label="居住地">{{user.userAddress}}</el-descriptions-item>
  </el-descriptions>
</template>
<script>
export default {
  name: "UserCenterView",
  data(){
    return{
      user: {
        userId: "",
        userName: '',
        userGender: '',
        userAddress: '',
        userAge: '',
        userAvatar: '',
        userPassword: '',
        roleId:''
      },
    }
  },
  created() {
    this.user = JSON.parse(localStorage.getItem("loginUser"));
  }
}
</script>

<style scoped>

</style>